﻿/***************************/
//@Author: Mr.Trung
//@website: 
//@email: thanhtrungcntt107@gmail.com
//@license: Feel free to use it, but keep this credits please!					
/***************************/

/

//CONTROLLING EVENTS IN jQuery
$(document).ready(function () {

    //LOADING POPUP
    //Click the button event!
    $("#btTT").click(function () {
        validateForm();
    });

    //CLOSING POPUP
    //Click the x event!
    $("#popupContactClose").click(function () {
        disablePopup();
    });
    //Click out event!
    $("#backgroundPopup").click(function () {
        disablePopup();
    });
    //Press Escape event!
    $(document).keypress(function (e) {
        if (e.keyCode == 27 && popupStatus == 1) {
            disablePopup();
        }
    });

});